package cn.bearspark.api;

import cn.bearspark.common.aop.autoparse.host.EnableAutoParseHost;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 控制层的启动类
 *
 * @author f
 */
@EnableDubbo
@EnableAutoParseHost
@EnableDiscoveryClient
@EnableAspectJAutoProxy
@SpringBootApplication
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(ApiApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.SERVLET);
        springApplication.run(args);
    }

}
